package com.logbacks.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.time.LocalDateTime;

/**
 * @author iszengziqiang@163.com
 * @date 2021-11-11 09:45
 * @Version: 1.0
 * @desc
 */
@Slf4j
@RestController
public class IndexController {

    @GetMapping("/index")
    public String getIndex(String id){
      log.info("####IndexController:{}",id);
      return "获取的id是："+id+"####Time:"+ LocalDateTime.now().toString();
    }

}
